projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9be38e6
)
gtk/gtkflowbox: Fix build warning/error
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Mon, 7 Oct 2013 04:00:30 +0000
(12:00 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Mon, 7 Oct 2013 04:13:11 +0000
(12:13 +0800)
The newly-added gtk_flow_box_child_is_selected() needed to return a
gboolean, so use g_return_val_if_fail() to return FALSE when an invalid
GtkFlowBoxChild* is passed in.
gtk/gtkflowbox.c
patch
|
blob
|
history
diff --git
a/gtk/gtkflowbox.c
b/gtk/gtkflowbox.c
index 34a99a382abef947a74762b737a45e291c886a9a..96d57f248803490dfa0f939b10ad3fd60795240a 100644
(file)
--- a/
gtk/gtkflowbox.c
+++ b/
gtk/gtkflowbox.c
@@
-680,7
+680,7
@@
gtk_flow_box_child_get_index (GtkFlowBoxChild *child)
gboolean
gtk_flow_box_child_is_selected (GtkFlowBoxChild *child)
{
- g_return_
if_fail (GTK_IS_FLOW_BOX_CHILD (child)
);
+ g_return_
val_if_fail (GTK_IS_FLOW_BOX_CHILD (child), FALSE
);
return CHILD_PRIV (child)->selected;
}